package com.bicon.botu.mall.base.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 * 物流公司
 * </p>
 *
 * @author tandk
 * @since 2018-05-10
 */
@Data
@TableName("logistics_company")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LogisticsCompany extends UuidBaseEntity<LogisticsCompany> {

    private static final long serialVersionUID = 1L;

    /**
     * 物流公司名称
     */
	private String name;
    /**
     * 网址
     */
	private String website;
    /**
     * 编码
     */
	private String code;
    /**
     * 电话
     */
	private String phone;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 状态（0关闭，1启用）
     */
	private Integer status;

	public LogisticsCompany() {
	}

	public LogisticsCompany(String id, String name, String website, String code, String phone, Integer sort, Integer status) {
		if (StringUtils.isNotEmpty(id)) {
			super.setId(id);
		}
		this.name = name;
		if (StringUtils.isNotEmpty(website)) {
			this.website = website;
		}
		if (StringUtils.isNotEmpty(code)) {
			this.code = code;
		}
		this.phone = phone;
		this.sort = sort;
		this.status = status;
	}
}
